"""

str = "helloworld"
for s in str:
    print(s)
    
    
str = 'hello'
result = 'h' in str
print(result)
result = 'e' not in str
print(result)
"""

"""
# 定义0到10的区间(包含0,不包含10)
arr = range(0, 10)
# 遍历区间
for ele in arr:
    print(ele)
    
"""


"""
i = 153
a = i // 100
b = i //10 % 10
c = i % 10
"""

"""
for i in range(100,1000):
    a = i // 100
    b = i //10 % 10
    c = i % 10
    if a**3+b**3+c**3 == i:
        print(i)
"""
"""
for i in range(5):
    if i == 3:
        break
    print(i)
print("*"*50)  
for i in range(5):
    if i == 3:
        continue
    print(i)
    
""" 
"""   
str = 'hello world'

for ele in str:
    print(ele)
else:
    print('执行了else语句')  
    
for ele in str:
    if ele == 'l':
        continue
    print(ele)
else:
    print('执行了else语句')
    
for ele in str:
    if ele == 'l':
        break
    print(ele)
else:
    print('else语句不会执行') 
"""

container = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_'
password = "hew2383dW_fkf&E@^"

for i in password:
    if i not in container:
        print("密码不合法，不可包含%s"%i)
        break
else:
    print("密码合法")    
